package com.bite.forum.service;

import com.bite.forum.model.User;
import org.apache.ibatis.annotations.Param;

public interface IUserService {

    void createNormalUser(User user);

    User selectByUserName(@Param("username") String username);

    User login(String username, String password);

    User selectByPrimaryKey(Long id);

    void addArticleCountById(Long id);

    void subArticleCountById(Long id);

    void modifyInfo(User user);

    void modifyPassword(Long userId , String newPassword , String oldPassword);
}
